package com.zhongkun.datahome.service.res.setting;

import com.zhongkun.datahome.service.domain.MiniProgramVisionSetting;
import lombok.Data;

/**
 * @Author: lifengsheng
 * @Date: 2025/5/8 14:04
 * @Desc
 */
@Data
public class AppVisionSettingVo {
    private String code;

    private String url;

    private String msg;

    public static AppVisionSettingVo of(MiniProgramVisionSetting miniProgramVisionSetting) {
        AppVisionSettingVo appVisionSettingVo = new AppVisionSettingVo();
        appVisionSettingVo.setCode(miniProgramVisionSetting.getCode());
        appVisionSettingVo.setUrl(miniProgramVisionSetting.getUrl());
        appVisionSettingVo.setMsg(miniProgramVisionSetting.getMsg());
        return appVisionSettingVo;
    }
}
